<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<link rel="stylesheet" href="plug-in/ace2/assets/css/font-awesome.min.css" />
<div class="easyui-layout" fit="true">
  <div region="center" style="padding:0px;border:0px">
  <t:datagrid name="list" checkbox="false" fitColumns="true" title="门禁列表" actionUrl="doorAccessController.do?datagrid" idField="id" fit="true" queryMode="group">
  	<t:dgCol title="主键"  field="id"  hidden="true"  queryMode="single" width="120"></t:dgCol>
   <t:dgCol title="名称"  field="name"  queryMode="single"  width="120" ></t:dgCol> 
   <t:dgCol title="ip地址"  field="ip"    queryMode="single"  width="120"  align="center"></t:dgCol>
   <t:dgCol title="通道"  field="channel"    queryMode="single"  width="120"  align="center"></t:dgCol>
   <t:dgCol title="实验室"  field="lab.name"  queryMode="single" query="true" replace="${labNames }" width="120" ></t:dgCol> 
   </t:datagrid>
  </div>
 </div>
 <script>
 	function getRows(){
 		var rows = $("#list").datagrid('getSelections');
 		if(rows.length==0){
 			tip("请选择数据");
 			return;
 		}
 		return rows;
 	}
 </script>